package com.usian.day10.thread;

/**
 * @author baimugudu
 * @email 2415621370@qq.com
 * @date 2023/8/7 13:54
 */
public class MyThread implements Runnable {
    int i = 0;


    @Override
    public void run() {

        try {
            Thread.sleep(100);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        System.out.println(Thread.currentThread().getName()+":"+getI());
    }

    public int getI(){
        return ++i;
    }
}
